package com.mediacloud.app.newsmodule.fragment.baoliao.model.detail.video;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Yoake on 2018/8/29.
 */

public class VodAddress implements Parcelable {
    private String title;
    private String url;
    private String relativeUrl;
    private String image;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRelativeUrl() {
        return relativeUrl;
    }

    public void setRelativeUrl(String relativeUrl) {
        this.relativeUrl = relativeUrl;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.url);
        dest.writeString(this.relativeUrl);
        dest.writeString(this.image);
    }

    public VodAddress() {
    }

    protected VodAddress(Parcel in) {
        this.title = in.readString();
        this.url = in.readString();
        this.relativeUrl = in.readString();
        this.image = in.readString();
    }

    public static final Parcelable.Creator<VodAddress> CREATOR = new Parcelable.Creator<VodAddress>() {
        @Override
        public VodAddress createFromParcel(Parcel source) {
            return new VodAddress(source);
        }

        @Override
        public VodAddress[] newArray(int size) {
            return new VodAddress[size];
        }
    };
}